#pragma once
#include "stdafx.h"

using namespace System;
using namespace System::Data;

namespace Librarian
{
	namespace Entities
	{
		public ref class BorrowEntity
		{
			
		private:
			int _BorrowId;
			String^ _BookNo;
			String^ _CardNo;
			DateTime _BorrowDate;
			DateTime _ReturnDate;
			String^ _Handler;

		public:
			property int BorrowId
			{
				int get()
				{
					return this->_BorrowId;
				}
				void set(int value)
				{
					this->_BorrowId = value;
				}
			}
			property String^ BookNo
			{
				String^ get()
				{
					return this->_BookNo ;
				}
				void set(String^ value)
				{
					this->_BookNo = value;
				}
			}
			property String^ CardNo
			{
				String^ get()
				{
					return this->_CardNo ;
				}
				void set(String^ value)
				{
					this->_CardNo = value;
				}
			}
			property DateTime BorrowDate
			{
				DateTime get()
				{
					return this->_BorrowDate ;
				}
				void set(DateTime value)
				{
					this->_BorrowDate = value;
				}
			}
			property DateTime ReturnDate
			{
				DateTime get()
				{
					return this->_ReturnDate;
				}
				void set(DateTime value)
				{
					this->_ReturnDate = value;
				}
			}
			property String^ Handler
			{
				String^ get()
				{
					return this->_Handler ;
				}
				void set(String^ value)
				{
					this->_Handler = value;
				}
			}

		//public: 
		//	virtual int ToString()override
		//	{
		//		return this->_BorrowId;
		//	}

		};
	}
}